package org.yum.gen;

import java.awt.Color;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.SwingUtilities;



public class Main extends JFrame {

	private Generator gen = new Generator();
	
	private CardView cardView = new CardView();
	private Panel panel = new Panel(gen, cardView);
	
	private JTabbedPane panes = new JTabbedPane();
	
	
	
	public Main() {
		
		initUI();
	}
	
	
	
	public void initUI() {
				
		panes.addTab("Power info", panel);
		panes.addTab("Power Card", cardView);
		
		
		
		add(panes);
		//pack();
		
		setTitle("Power Generator");
		setSize(495,600);
		setResizable(true);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	}
	/**
	 * @param args
	 */
	public static void main(String args[]) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				Main m = new Main();
				m.setVisible(true);
			}
		});
	}

}
